package com.njupt.towerssystem.services;


import redis.clients.jedis.Jedis;

import java.util.HashMap;
import java.util.Map;

public class Demo {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("redis://192.168.152.131:6379");
        jedis.auth("ok");
//        System.out.println(jedis.hgetAll("aaa"));
//        Map mp = new HashMap();
//        mp.put("b1","kk1");
//        mp.put("b2","kk2");
//        mp.put("b3","kk3");
        jedis.hset("aaa","ddd","1000");
    }
}
